<#escape x as (x)!?html>
    <#import "/page/Utils.ftl" as utils/>
<head>
    <script type="text/javascript">
        var menuId = "Monitor_CacheStatistics";
    </script>
</head>
<body>
<div>
    <table>
        <caption>
            <div class="tools border">CacheStatistics</div>
        </caption>
        <thead>
        <tr>
            <td>Item</td><td>Value</td>
        </tr>
        </thead>
        <tbody>
        <tr><td>start time</td><td>${statistics.startTime}</td></tr>
        <tr><td>sessions opened</td><td>${statistics.sessionOpenCount}</td></tr>
        <tr><td>sessions closed</td><td>${statistics.sessionCloseCount}</td></tr>
        <tr><td>transactions</td><td>${statistics.transactionCount}</td></tr>
        <tr><td>successful transactions</td><td>${statistics.commitedTransactionCount}</td></tr>
        <tr><td>optimistic lock failures</td><td>${statistics.optimisticFailureCount}</td></tr>
        <tr><td>flushes</td><td>${statistics.flushCount}</td></tr>
        <tr><td>connections obtained</td><td>${statistics.connectCount}</td></tr>
        <tr><td>statements prepared</td><td>${statistics.prepareStatementCount}</td></tr>
        <tr><td>statements closed</td><td>${statistics.closeStatementCount}</td></tr>
        <tr class="red"><td>second level cache puts</td><td>${statistics.secondLevelCachePutCount}</td></tr>
        <tr class="red"><td>second level cache hits</td><td>${statistics.secondLevelCacheHitCount}</td></tr>
        <tr class="red"><td>second level cache misses</td><td>${statistics.secondLevelCacheMissCount}</td></tr>
        <tr><td>entities loaded</td><td>${statistics.entityLoadCount}</td></tr>
        <tr><td>entities updated</td><td>${statistics.entityUpdateCount}</td></tr>
        <tr><td>entities inserted</td><td>${statistics.entityInsertCount}</td></tr>
        <tr><td>entities deleted</td><td>${statistics.entityDeleteCount}</td></tr>
        <tr><td>entities fetched</td><td>${statistics.entityFetchCount}</td></tr>
        <tr><td>collections loaded</td><td>${statistics.collectionLoadCount}</td></tr>
        <tr><td>collections updated</td><td>${statistics.collectionUpdateCount}</td></tr>
        <tr><td>collections removed</td><td>${statistics.collectionRemoveCount}</td></tr>
        <tr><td>collections recreated</td><td>${statistics.collectionRecreateCount}</td></tr>
        <tr><td>collections fetched</td><td>${statistics.collectionFetchCount}</td></tr>
        <tr><td>queries executed to database</td><td>${statistics.queryExecutionCount}</td></tr>
        <tr class="red"><td>query cache puts</td><td>${statistics.queryCachePutCount}</td></tr>
        <tr class="red"><td>query cache hits</td><td>${statistics.queryCacheHitCount}</td></tr>
        <tr class="red"><td>query cache misses</td><td>${statistics.queryCacheMissCount}</td></tr>
        <tr><td>max query time</td><td>${statistics.queryExecutionMaxTime}</td></tr>
        <tbody>
    </table>
</div>
</body>
</#escape>